package summer_vacation.liqing;

/**
 * Created by 123456 on 2015/8/16.
 */
import java.util.*;
public class Assignment_2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入10个任意的整数：");
        int max=Integer.MIN_VALUE;
        int min=Integer.MAX_VALUE;
        for (int i=1;i<=10;i++){
            int j=in.nextInt();
            if(max<j) max=j;
            if(min>j) min=j;
        }
        System.out.println("最大值为"+max);
        System.out.println("最小值为"+min);
    }
}
